package cn.com.huzo.service.master;

import cn.com.huzo.model.entities.master.SupplierGroupMemberSupplierEntity;
import huzofw.service.GenericManager;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 供应商组成员供应商管理服务对象接口。
 *
 * @author 吴旭
 */
public interface SupplierGroupMemberSupplierManager extends GenericManager<SupplierGroupMemberSupplierEntity, HashMap> {

    /**
     * 取得该供应商所在组
     *
     * @param supplierId 供应商ID
     * @return 供应商组信息对象
     * @throws java.lang.Exception
     */
    List<SupplierGroupMemberSupplierEntity> fetchBySupplierId(Long supplierId) throws Exception;

    /**
     * 新建组成员供应商
     *
     * @param criterion
     * @return
     * @throws Exception
     */
    Map<String, Object> insert(Map<String, Object> criterion) throws Exception;
}
